﻿<%@ Page Title="Confirm Order" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Confirmation.aspx.cs" Inherits="TwoWheels.Order.Confirmation" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        List of your products</h1>
    <br />
    <asp:GridView ID="OrderView" runat="server" CellPadding = "6" Wdith="70%" AutoGenerateColumns="true">
    </asp:GridView>
    <p>
        Total price:
        <asp:Label ID="TotalPrice" runat="server" Font-Bold="true" Font-Size="Medium"></asp:Label>
    </p>
    <p>
        <h3>
            Delivery address</h3>
    </p>
    <p>
        <asp:Label ID="Label1" Width="150px" runat="server" Text="Name" />
        <asp:TextBox Height="20" ID="Name" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <asp:Label ID="Label2" Width="150px" runat="server" Text="Surname" />
        <asp:TextBox Height="20" ID="Surname" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <asp:Label ID="Label3" Width="150px" runat="server" Text="Address" />
        <asp:TextBox Height="20" ID="Address" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <asp:Label ID="Label4" Width="150px" runat="server" Text="City" />
        <asp:TextBox Height="20" ID="City" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <asp:Label ID="Label5" Width="150px" runat="server" Text="Post code" />
        <asp:TextBox Height="20" ID="Code" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <asp:Label ID="Label6" Width="150px" runat="server" Text="Country" />
        <asp:TextBox Height="20" ID="Country" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <asp:Label ID="Label7" Width="150px" runat="server" Text="Telephone" />
        <asp:TextBox Height="20" ID="Tel" runat="server" Style="margin-bottom: 0px" />
    </p>
    <p>
        <table>
            <tr>
                <td>
                    <asp:CheckBox ID="CompanyCheckBox" runat="server" OnCheckedChanged="onCheckChanged"
                        AutoPostBack="true" />
                </td>
                <td>
                    <asp:Label ID="Label8" runat="server">Company(select if you want invoice)</asp:Label>
                </td>
            </tr>
        </table>
    </p>
    <p>
        <asp:Label ID="CompanyName" runat="server" Width="150px">CompanyName:</asp:Label>
        <asp:TextBox ID="CompanyNameTextBox" runat="server" Enabled="false" BackColor="LightGray"></asp:TextBox>
     </p>
     <p>
            <asp:Label ID="NIPCompanyLabel" runat="server" Width="150px">NIP:</asp:Label>
           <asp:TextBox ID="NIPTextBox" runat="server" Enabled="false" BackColor="LightGray"></asp:TextBox>
     </p>
     <p>
          <asp:DropDownList id="DropDownList1" runat="server"
             DataSourceID="SQLDataDelivery"
             DataTextField="Nazwa"
             DataValueField="Nazwa"
             AutoPostBack="True"
             >
        
             <asp:ListItem value="value" selected="True">
             </asp:ListItem>

          </asp:DropDownList>

         <asp:SqlDataSource ID="SQLDataDelivery" runat="server" 
             ConnectionString="<%$ connectionStrings: ApplicationServices %>"
             SelectCommand="SELECT [Nazwa] from Dostawcy"
         >  
         </asp:SqlDataSource>
     
     
     </p>

     <p>
            <asp:Button ID="goBack" runat="server" Text="Back" OnClick="goBack_Click" />

            <asp:Button ID="ConfirmOrder" runat="server" Text="GO" 
                onclick="ConfirmOrder_Click" CommandArgument="go" CommandName="confirmOrder" />

     </p>
</asp:Content>
